import request from '@/utils/request'


export function getList(query) {
  return request({
    url: '/api/member/list',
    method: 'get',
    params: query
  })
}


export function create(data) {
  return request({
    url: '/api/member/create',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/api/member/delete',
    method: 'get',
    params: { id }
  })
}


export function changeStatus(val, id) {
  return request({
    url: '/api/member/change_status',
    method: 'get',
    params: {
      id: id,
      status: val
    }
  })
}

export function create_ocpc(type, bd_vid) {
  return request({
    url: '/api/member/ocpc_return',
    method: 'get',
    params: {
      type: type,
      bd_vid: bd_vid
    }
  })
}
